package com.fanqiechaodan.factory.abstractfactory.factory;

import com.fanqiechaodan.factory.abstractfactory.product.ProductA;
import com.fanqiechaodan.factory.abstractfactory.product.ProductA2;
import com.fanqiechaodan.factory.abstractfactory.product.ProductB;
import com.fanqiechaodan.factory.abstractfactory.product.ProductB2;

/**
 * @author fanqiechaodan
 * @Classname Factory2
 * @Description 具体工厂2
 */
public class Factory2 implements AbstractFactory{

    @Override
    public ProductA createProductA() {
        return new ProductA2();
    }

    @Override
    public ProductB createProductB() {
        return new ProductB2();
    }
}
